import http from "@/http";

export const getRoleList = (params?:any) => {
    return http({
        url:'/role/list',
        params,
        method:'get'
    }).then(res=>{
        return res.data
    })
}

export const create = (params?:any) => {
    return http({
        url:'/role/create',
        data: params,
        method:'post'
    })
}

export const update = (params?:any) => {
    return http({
        url:'/role/update',
        data:params,
        method:'post'
    })
}